//
//  AppDelegate.m
//  HideStatusBarDemo
//
//  Created by lg on 31/10/2019.
//  Copyright © 2019 lg. All rights reserved.
//

#import "AppDelegate.h"
//#import "StatusViewController.h"

@implementation AppDelegate

//- (UIWindow *)window {
//    if (!_window) {
//        _window = [[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds];
//    }
//    return _window;
//}

//- (UIWindow *)statusWindow {
//    if (!_statusWindow) {
//        _statusWindow = [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, UIScreen.mainScreen.bounds.size.width, 100)];
//        // 这里设置windowLevel 为UIWindowLevelStatusBar或者UIWindowLevelAlert都可以
//        self.statusWindow.windowLevel = UIWindowLevelStatusBar-1;
//        // 颜色必须为clearColor，否则会盖住状态栏的区域
//        self.statusWindow.backgroundColor = [UIColor clearColor];
//        self.statusWindow.rootViewController = [StatusViewController sharedInstance];
//        self.statusWindow.hidden = NO;
//    }
//    return _statusWindow;
//}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    
//    [self statusWindow];
    
    CGRect rect = [UIApplication sharedApplication].statusBarFrame;
    NSLog(@"%@", NSStringFromCGRect(rect));
    
    return YES;
}

@end
